import Layout from '@/layout'

const storeRouter = {
  path: '/store-product',
  name: 'store-product-group',
  component: Layout,
  meta: { title: '仓库货品报表', icon: 'tree', roles: ['m7200'] },
  children: [
    {
      path: 'day',
      component: (resolve) => require(['@/views/store-product-group/day'], resolve),
      name: 'StoreProductDayManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store-product/day/' },
      remoteUrl: '',
      meta: { title: '仓库货品日报', roles: ['m7210'] }
    },
    {
      path: 'month',
      component: (resolve) => require(['@/views/store-product-group/month'], resolve),
      name: 'StoreProductMonthManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store-product/month/' },
      remoteUrl: '',
      meta: { title: '仓库货品月报', roles: ['m7220'] }
    },
    {
      path: 'year',
      component: (resolve) => require(['@/views/store-product-group/year'], resolve),
      name: 'StoreProductYearManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/statistics/store-product/year/' },
      remoteUrl: '',
      meta: { title: '仓库货品年报', roles: ['m7230'] }
    }
  ]
}

export default storeRouter
